package org.voyager.service.front.subsystem;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.voyager.common.beans.JsonResult;
import org.voyager.common.constants.ServiceIdDict;
import org.voyager.service.front.VO.ScenicVo;
import org.voyager.service.front.fallback.ScenicClientFallBack;

import com.alibaba.fastjson.JSONObject;

@FeignClient(name = ServiceIdDict.SERVICE_ID_ADMIN, fallback = ScenicClientFallBack.class)
public interface ScenicClient {

    @RequestMapping(value = "/scenic/group/list", method = RequestMethod.POST)
    JsonResult queryScenicGroups(@RequestBody ScenicVo scenicVo);

    @RequestMapping(value = "/scenic/spot/list", method = RequestMethod.POST)
    JsonResult queryScenicSpots(@RequestBody ScenicVo scenicVo);

    @RequestMapping(value = "/scenic/spot/query", method = RequestMethod.POST)
    JsonResult queryScenicSpotsById(@RequestBody JSONObject jo);
    
    @RequestMapping(value = "/scenic/spot/all", method = RequestMethod.POST)
	public JsonResult aueryAllList();
}
